package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.databinding.ItemRechargeMoneyBinding

/**
 * @Author      : hxw
 * @Date        : 2024/11/13 14:20
 * @Describe    :
 */
class AdapterRechargeMoney(data: ArrayList<String>) : BaseQuickAdapter<String, DataBindBaseViewHolder>(R.layout.item_recharge_money, data) {

    override fun convert(holder: DataBindBaseViewHolder, item: String) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemRechargeMoneyBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动
    }
}